package cn.mw.cmdb.util;

import java.util.UUID;

/**
 * @author
 * @ClassName UUIDUtils
 * @CreateDate
 * @Description
 */
public class UUIDUtils {

    public static String getUUID(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String getUUIDSixNum(){
        String replace = UUID.randomUUID().toString().replace("-", "");
        int length = replace.length();
        String substring = "";
        if(length > 6){
             substring = replace.substring(length-6);
        }
        return substring;
    }

}
